Skip to content

Conversation

sunfishcode
Copy link
Member

Use the "volatile" option and the "memory" clobber on inline asm that does
things like return directly, to reduce the chances of compilers rearranging
the code.

This fixes the conflict with TrapUnreachable in rust-lang/rust#45920 (comment).

Use the "volatile" option and the "memory" clobber on inline asm that does
things like return directly, to reduce the chances of compilers rearranging
the code.
@alexcrichton alexcrichton merged commit f5532b2 into rust-lang:master Nov 15, 2017
@alexcrichton
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants